package BasicCmIRPConstDefs;
/**
 * Generated from IDL enum "ScopeType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class ScopeType
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _BASE_ONLY = 0;
	public static final ScopeType BASE_ONLY = new ScopeType(_BASE_ONLY);
	public static final int _BASE_NTH_LEVEL = 1;
	public static final ScopeType BASE_NTH_LEVEL = new ScopeType(_BASE_NTH_LEVEL);
	public static final int _BASE_SUBTREE = 2;
	public static final ScopeType BASE_SUBTREE = new ScopeType(_BASE_SUBTREE);
	public static final int _BASE_ALL = 3;
	public static final ScopeType BASE_ALL = new ScopeType(_BASE_ALL);
	public int value()
	{
		return value;
	}
	public static ScopeType from_int(int value)
	{
		switch (value) {
			case _BASE_ONLY: return BASE_ONLY;
			case _BASE_NTH_LEVEL: return BASE_NTH_LEVEL;
			case _BASE_SUBTREE: return BASE_SUBTREE;
			case _BASE_ALL: return BASE_ALL;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _BASE_ONLY: return "BASE_ONLY";
			case _BASE_NTH_LEVEL: return "BASE_NTH_LEVEL";
			case _BASE_SUBTREE: return "BASE_SUBTREE";
			case _BASE_ALL: return "BASE_ALL";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected ScopeType(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
